package com.asset.dispoal.defaultDepartment.service.converter;

import com.asset.dispoal.defaultDepartment.domain.db.entity.GbDefaultDepartment;
import com.asset.dispoal.defaultDepartment.dto.GbDefaultDepartmentRequest;
import com.asset.dispoal.defaultDepartment.dto.GbDefaultDepartmentResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author qr
 * @date 2022/3/21$
 */
@Mapper
public interface GbDefaultDepartmentConverter {


    GbDefaultDepartmentConverter INSTANCE = Mappers.getMapper(GbDefaultDepartmentConverter.class);

    GbDefaultDepartment reqToDo(GbDefaultDepartmentRequest request);

    List<GbDefaultDepartmentResponse> doToRes(List<GbDefaultDepartment> departmentList);


}
